#export CUDA_VISIBLE_DEVICES=1,2,3
# 获取当前时间
now=$(date +%s%3N)
# echo $now
# 转换成字符串并格式化为yyyy_MM_dd_hh_mm_ss
now_str=$now
echo $now_str
# 将当前时间字符串和字符串M拼接成N
M="train_gxl_"
log=".log"
pid=".pid"
out="$M$now_str$log"
M2="run_gxl_"
out2="$M2$now_str$pid"
nohup python spider.py > $out 2>&1 & echo $! > $out2